From: Giovanni Campagna Date: Fri, 31 Aug 2012 17:56:45 +0000 (+0200) Subject: Bluetooth: don't restrict the length of non numeric PINs X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5934 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=3710b88ab9c9e59bb94ed71b0ef853fc07deab30;p=gnome-shell.git Bluetooth: don't restrict the length of non numeric PINs The protocol restriction is only for numeric PINs (passkeys, in bluez jargon). For passwords, any length is allowed. https://bugzilla.gnome.org/show_bug.cgi?id=683356 --- diff --git a/js/ui/status/bluetooth.js b/js/ui/status/bluetooth.js index 3e043c375..22a1b6655 100644 --- a/js/ui/status/bluetooth.js +++ b/js/ui/status/bluetooth.js @@ -456,7 +456,10 @@ const PinNotification = new Lang.Class({ _canActivateOkButton: function() { // PINs have a fixed length of 6 - return this._entry.clutter_text.text.length == 6; + if (this._numeric) + return this._entry.clutter_text.text.length == 6; + else + return true; }, grabFocus: function(lockTray) {